(()=>{"use strict";var t,e={65677:(t,e,n)=>{var r=v(n(66694)),o=v(n(79674)),a=v(n(71350));n(76528),n(47585);var i=v(n(90146)),l=v(n(82786)),u=n(54830),d=v(n(90840)),f=v(n(40710)),c=v(n(64524)),s=v(n(55046));function v(t){return t&&t.__esModule?t:{default:t}}function b(t,e){if(t){if("string"==typeof t)return y(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?y(t,e):void 0}}function y(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}a.default.extend(i.default),"en"===function(t){var e,n,r,o=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=b(t))){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){l=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}(document.cookie.split("; "));try{for(o.s();!(e=o.n()).done;){var a=(n=e.value.split("="),r=2,function(t){if(Array.isArray(t))return t}(n)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,d=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){d=!0,o=t}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw o}}return l}}(n,r)||b(n,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),i=a[0],l=a[1];if("Scr1wCTFdLanguage"===i)return decodeURIComponent(l)}}catch(t){o.e(t)}finally{o.f()}return null}()?a.default.locale("en"):a.default.locale("zh-cn"),r.default.init(window.init),window.CTFd=r.default,window.helpers=s.default,window.$=o.default,window.dayjs=a.default,window.nunjucks=l.default,window.Howl=u.Howl,(0,o.default)((function(){(0,c.default)(),(0,f.default)(),(0,d.default)(r.default.config.urlRoot)}))},47777:(t,e,n)=>{n(65677);var r=i(n(66694)),o=i(n(79674)),a=n(96403);function i(t){return t&&t.__esModule?t:{default:t}}function l(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=u(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,i=!0,l=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return i=t.done,t},e:function(t){l=!0,a=t},f:function(){try{i||null==n.return||n.return()}finally{if(l)throw a}}}}function u(t,e){if(t){if("string"==typeof t)return d(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(t,e):void 0}}function d(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function f(t,e){var n,r,o,a=l(document.cookie.split("; "));try{for(a.s();!(n=a.n()).done;){var i=(r=n.value.split("="),o=2,function(t){if(Array.isArray(t))return t}(r)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var r,o,a,i,l=[],u=!0,d=!1;try{if(a=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;u=!1}else for(;!(u=(r=a.call(n)).done)&&(l.push(r.value),l.length!==e);u=!0);}catch(t){d=!0,o=t}finally{try{if(!u&&null!=n.return&&(i=n.return(),Object(i)!==i))return}finally{if(d)throw o}}return l}}(r,o)||u(r,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),d=i[0],f=i[1];if("Scr1wCTFdLanguage"===d)return"en"===decodeURIComponent(f)?t:e}}catch(t){a.e(t)}finally{a.f()}return e}var c={users:function(t,e){return r.default.api.patch_user_public({userId:t},e)},teams:function(t,e){return r.default.api.patch_team_public({teamId:t},e)}};function s(){var t=(0,o.default)(this),e=t.data("account-id"),n=t.data("state"),a=void 0;"visible"===n?a=!0:"hidden"===n&&(a=!1);var i={hidden:a};c[r.default.config.userMode](e,i).then((function(e){e.success&&(a?(t.data("state","hidden"),t.addClass("btn-danger").removeClass("btn-success"),t.text("Hidden")):(t.data("state","visible"),t.addClass("btn-success").removeClass("btn-danger"),t.text("Visible")))}))}function v(t){var e={accounts:(0,o.default)(".tab-pane.active input[data-account-id]:checked").map((function(){return(0,o.default)(this).data("account-id")})),users:(0,o.default)(".tab-pane.active input[data-user-id]:checked").map((function(){return(0,o.default)(this).data("user-id")}))};(0,a.ezAlert)({title:f("Toggle Visibility","切换可见性"),body:(0,o.default)('\n    <form id="scoreboard-bulk-edit">\n      <div class="form-group">\n        <label>'+f("Visibility","可见性")+'</label>\n        <select name="visibility" data-initial="">\n          <option value="">--</option>\n          <option value="visible">'+f("Visible","可见")+'</option>\n          <option value="hidden">'+f("Hidden","隐藏")+"</option>\n        </select>\n      </div>\n    </form>\n    "),button:f("Submit","提交"),success:function(){var t=(0,o.default)("#scoreboard-bulk-edit").serializeJSON(!0).visibility;!function(t,e){var n,o={hidden:"hidden"===e},a=[],i=l(t.accounts);try{for(i.s();!(n=i.n()).done;){var u=n.value;a.push(c[r.default.config.userMode](u,o))}}catch(t){i.e(t)}finally{i.f()}var d,f=l(t.users);try{for(f.s();!(d=f.n()).done;){var s=d.value;a.push(c.users(s,o))}}catch(t){f.e(t)}finally{f.f()}Promise.all(a).then((function(t){window.location.reload()}))}(e,t)}})}(0,o.default)((function(){(0,o.default)(".scoreboard-toggle").click(s),(0,o.default)("#scoreboard-edit-button").click(v)}))}},n={};function r(t){var o=n[t];if(void 0!==o)return o.exports;var a=n[t]={id:t,loaded:!1,exports:{}};return e[t](a,a.exports,r),a.loaded=!0,a.exports}r.m=e,t=[],r.O=(e,n,o,a)=>{if(!n){var i=1/0;for(f=0;f<t.length;f++){for(var[n,o,a]=t[f],l=!0,u=0;u<n.length;u++)(!1&a||i>=a)&&Object.keys(r.O).every((t=>r.O[t](n[u])))?n.splice(u--,1):(l=!1,a<i&&(i=a));if(l){t.splice(f--,1);var d=o();void 0!==d&&(e=d)}}return e}a=a||0;for(var f=t.length;f>0&&t[f-1][2]>a;f--)t[f]=t[f-1];t[f]=[n,o,a]},r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),r.j=775,(()=>{var t={775:0,671:0};r.O.j=e=>0===t[e];var e=(e,n)=>{var o,a,[i,l,u]=n,d=0;if(i.some((e=>0!==t[e]))){for(o in l)r.o(l,o)&&(r.m[o]=l[o]);if(u)var f=u(r)}for(e&&e(n);d<i.length;d++)a=i[d],r.o(t,a)&&t[a]&&t[a][0](),t[a]=0;return r.O(f)},n=self.webpackChunkctfd=self.webpackChunkctfd||[];n.forEach(e.bind(null,0)),n.push=e.bind(null,n.push.bind(n))})();var o=r.O(void 0,[160,736,694],(()=>r(47777)));o=r.O(o)})();